package actionListeners;

import java.awt.event.KeyEvent;
import java.awt.event.KeyListener;


public class MascaraTipoIntListener implements KeyListener  {
	public void keyPressed(KeyEvent e) {
			
	}

	@Override
	public void keyReleased(KeyEvent e) {

		}

	@Override
	public void keyTyped(KeyEvent e) {
		 char caracter = e.getKeyChar();
	     // Verificar si la tecla pulsada no es un digito
	     if((caracter > 57) ||  (caracter < 48)){
			 e.consume();
		 }
	}



}